PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / setClip Method / setClip(PDFPath) Method
that represents the new clip region.
In This Topic
    setClip(PDFPath) Method
    In This Topic
    Sets the clipping region of this graphics to the specified path.
    The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see method) before setting a clipping path and restore the graphics state (see method) after the clipping path is no longer needed.
    Syntax
    public void setClip( 
       PDFPath path
    )

    Parameters

    path
    that represents the new clip region.
    Exceptions
    ExceptionDescription
    when the clip path is null.
    See Also